package com.mallfeign.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: where
 * @Date: 2022/07/21/15:37
 * @Description:
 */
@FeignClient("eureka-client")
@Component
public interface ITestFeign {

    @GetMapping("/eureka/{id}")
    String test01 (@PathVariable("id") int id);

    @PostMapping("/eureka")
    String postTest();
}
